package java69.work720;

public class Instrument {
    protected String name;

    public Instrument() {
    }

    public Instrument(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected void play(){
        System.out.println(getName()+"正在演奏");
    }
}
